/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package experiments;

/**
 *
 * @author o.rybyanskyy
 */



public class ModifyObjectPassedInParameter {
    
    public static String trimString(String s){
    return s.trim();
}
    
    public static void main(String[] a){
        String n = " asdf "; //has whitespaces at the beginning and in the end.
        System.out.println(n);
        System.out.println(trimString(n));
        System.out.println(n); //this still has whitespaces. 
    }
}
